#!/usr/bin/env python3.10
# -*- encoding: utf-8 -*-
'''
@File    :   relation.py
@Time    :   2023/05/04 17:26:29
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from tortoise import fields
from .base import BaseModel


class PostTagsModel(BaseModel):
    """文章分类表表"""
    post = fields.ForeignKeyField("models.PostModel", on_delete=fields.CASCADE)
    tag = fields.ForeignKeyField("models.TagModel", on_delete=fields.CASCADE)
    class Meta:
        table = "sys_post_tag"